using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Collections.ObjectModel;
using System.Data;
namespace   CommunitySystemModel
{
    [Serializable]
    [DataContract]
    public class JinShenM
	{
		private System.Int32 _ID;
        [DataMember]
		public System.Int32 ID
		{
			get{return _ID;}
			set{_ID = value;}
		}
		private System.Int32? _OrgID;
        [DataMember]
		public System.Int32? OrgID
		{
			get{return _OrgID;}
			set{_OrgID = value;}
		}
		private System.String _OrgName;
        [DataMember]
		public System.String OrgName
		{
			get{return _OrgName;}
			set{_OrgName = value;}
		}
		private System.String _Department;
        [DataMember]
		public System.String Department
		{
			get{return _Department;}
			set{_Department = value;}
		}
		private System.String _Position;
        [DataMember]
		public System.String Position
		{
			get{return _Position;}
			set{_Position = value;}
		}
		private System.String _PositionAttibute;
        [DataMember]
		public System.String PositionAttibute
		{
			get{return _PositionAttibute;}
			set{_PositionAttibute = value;}
		}
		private System.String _PositionLevel;
        [DataMember]
		public System.String PositionLevel
		{
			get{return _PositionLevel;}
			set{_PositionLevel = value;}
		}
		private System.String _Education;
        [DataMember]
		public System.String Education
		{
			get{return _Education;}
			set{_Education = value;}
		}
		private System.String _Political;
        [DataMember]
		public System.String Political
		{
			get{return _Political;}
			set{_Political = value;}
		}
		private System.String _PromotType;
        [DataMember]
		public System.String PromotType
		{
			get{return _PromotType;}
			set{_PromotType = value;}
		}
		private System.String _DSC;
        [DataMember]
		public System.String DSC
		{
			get{return _DSC;}
			set{_DSC = value;}
		}
		private System.String _Status;
        [DataMember]
		public System.String Status
		{
			get{return _Status;}
			set{_Status = value;}
		}

        private string _CreateUser;
        [DataMember]
        public string CreateUser
        {
            get { return _CreateUser; }
            set { _CreateUser = value; }
        }

        private DateTime _CreateDate;
        [DataMember]
        public DateTime CreateDate
        {
            get { return _CreateDate; }
            set { _CreateDate = value; }
        }

        private string _FenGuanGongZuo;
        [DataMember]
        public string FenGuanGongZuo
        {
            get { return _FenGuanGongZuo; }
            set { _FenGuanGongZuo = value; }
        }

   
	}

    [Serializable]
    [DataContract]
    public class JinShenMHelp
    {
        private System.Int32 _ID;
        [DataMember]
        public System.Int32 ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private System.Int32? _OrgID;
        [DataMember]
        public System.Int32? OrgID
        {
            get { return _OrgID; }
            set { _OrgID = value; }
        }
        private System.String _OrgName;
        [DataMember]
        public System.String OrgName
        {
            get { return _OrgName; }
            set { _OrgName = value; }
        }
        private System.String _Department;
        [DataMember]
        public System.String Department
        {
            get { return _Department; }
            set { _Department = value; }
        }
        private System.String _Position;
        [DataMember]
        public System.String Position
        {
            get { return _Position; }
            set { _Position = value; }
        }
        private System.String _PositionAttibute;
        [DataMember]
        public System.String PositionAttibute
        {
            get { return _PositionAttibute; }
            set { _PositionAttibute = value; }
        }
        private System.String _PositionLevel;
        [DataMember]
        public System.String PositionLevel
        {
            get { return _PositionLevel; }
            set { _PositionLevel = value; }
        }
        private System.String _Education;
        [DataMember]
        public System.String Education
        {
            get { return _Education; }
            set { _Education = value; }
        }
        private System.String _Political;
        [DataMember]
        public System.String Political
        {
            get { return _Political; }
            set { _Political = value; }
        }
        private System.String _PromotType;
        [DataMember]
        public System.String PromotType
        {
            get { return _PromotType; }
            set { _PromotType = value; }
        }
        private System.String _DSC;
        [DataMember]
        public System.String DSC
        {
            get { return _DSC; }
            set { _DSC = value; }
        }
        private System.String _Status;
        [DataMember]
        public System.String Status
        {
            get { return _Status; }
            set { _Status = value; }
        }

        private string _CreateUser;
        [DataMember]
        public string CreateUser
        {
            get { return _CreateUser; }
            set { _CreateUser = value; }
        }

        private DateTime _CreateDate;
        [DataMember]
        public DateTime CreateDate
        {
            get { return _CreateDate; }
            set { _CreateDate = value; }
        }

        private string _FenGuanGongZuo;
        [DataMember]
        public string FenGuanGongZuo
        {
            get { return _FenGuanGongZuo; }
            set { _FenGuanGongZuo = value; }
        }


        private System.Int32? _MainID;
        [DataMember]
        public System.Int32? MainID
        {
            get { return _MainID; }
            set { _MainID = value; }
        }
        private System.String _Key;
        [DataMember]
        public System.String Key
        {
            get { return _Key; }
            set { _Key = value; }
        }
        private System.String _filename;
        [DataMember]
        public System.String filename
        {
            get { return _filename; }
            set { _filename = value; }
        }

        private string _realname;
        [DataMember]
        public string realname
        {
            get { return _realname; }
            set { _realname = value; }
        }

        private string _OpStatus;
        [DataMember]
         public string OpStatus
        {
            get { return _OpStatus; }
            set { _OpStatus = value; }
        }
        private string _FileSize;
        [DataMember]
        public string FileSize
        {
            get { return _FileSize; }
            set { _FileSize = value; }
        }

        private string _Percentage;
        [DataMember]
        public string Percentage
        {
            get { return _Percentage; }
            set { _Percentage = value; }
        }



        private ObservableCollection<JinShen_MainInfo> _JinShen_MainInfos = new ObservableCollection<JinShen_MainInfo>();

        [DataMember]
        public ObservableCollection<JinShen_MainInfo> JinShen_MainInfos
        {
            get { return _JinShen_MainInfos; }
            set { _JinShen_MainInfos = value; }
        }


        private System.String _Status1;
        [DataMember]
        public System.String Status1
        {
            get { return _Status1; }
            set { _Status1 = value; }
        }

        public static JinShenMHelp FillEntity(DataRow dr)
        {
            JinShenMHelp right = new JinShenMHelp();
            if (dr.Table != null && dr.Table.Columns.Contains("ID") && !string.IsNullOrEmpty(dr["ID"].ToString())) right.ID = Convert.ToInt32(dr["ID"].ToString());
            if (dr.Table != null && dr.Table.Columns.Contains("OrgID") && !string.IsNullOrEmpty(dr["OrgID"].ToString())) right.OrgID = Convert.ToInt32(dr["OrgID"].ToString());
            if (dr.Table != null && dr.Table.Columns.Contains("OrgName") && !string.IsNullOrEmpty(dr["OrgName"].ToString())) right.OrgName =dr["OrgName"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("Status") && !string.IsNullOrEmpty(dr["Status"].ToString())) right.Status =dr["Status"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("CreateUser") && !string.IsNullOrEmpty(dr["CreateUser"].ToString())) right.CreateUser = dr["CreateUser"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("CreateDate") && !string.IsNullOrEmpty(dr["CreateDate"].ToString())) right.CreateDate = Convert.ToDateTime(dr["CreateDate"].ToString());
            if (dr.Table != null && dr.Table.Columns.Contains("Status1") && !string.IsNullOrEmpty(dr["Status1"].ToString())) right.Status1 = dr["Status1"].ToString();
            //if (dr.Table != null && dr.Table.Columns.Contains("OpStatus") && !string.IsNullOrEmpty(dr["OpStatus"].ToString())) 
                right.OpStatus = dr["OpStatus"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("MainID") && !string.IsNullOrEmpty(dr["MainID"].ToString())) right.MainID =Convert.ToInt32(dr["MainID"].ToString());
            if (dr.Table != null && dr.Table.Columns.Contains("Key") && !string.IsNullOrEmpty(dr["Key"].ToString())) right.Key =dr["Key"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("filename") && !string.IsNullOrEmpty(dr["filename"].ToString())) right.filename = dr["filename"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("realname") && !string.IsNullOrEmpty(dr["realname"].ToString())) right.realname = dr["realname"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("Percentage") && !string.IsNullOrEmpty(dr["Percentage"].ToString())) right.Percentage = dr["Percentage"].ToString();

            if (dr.Table != null && dr.Table.Columns.Contains("FileSize") && !string.IsNullOrEmpty(dr["FileSize"].ToString())) right.FileSize = dr["FileSize"].ToString();
            
            return right;
        }

    }

    [Serializable]
    [DataContract]
    public class JinShen_SHJLDetail
    {
        private int _ID;
         [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
         private int _JSMID;
         [DataMember]
           public int JSMID
        {
            get { return _JSMID; }
            set { _JSMID = value; }
        }
        
         private string _Name;
         [DataMember]
         public string Name
         {
             get { return _Name; }
             set { _Name = value; }
         }
         private string _Status;
         [DataMember]
         public string Status
         {
             get { return _Status; }
             set { _Status = value; }
         }
         private DateTime? _BLDate;
         [DataMember]
         public DateTime? BLDate
         {
             get { return _BLDate; }
             set { _BLDate = value; }
         }
         private DateTime? _CreateDate;
         [DataMember]
         public DateTime? CreateDate
         {
             get { return _CreateDate; }
             set { _CreateDate = value; }
         }
         private string _CreateUser;
         [DataMember]
         public string CreateUser
         {
             get { return _CreateUser; }
             set { _CreateUser = value; }
         }
         private string _Department;
         [DataMember]
         public string Department
         {
             get { return _Department; }
             set { _Department = value; }
         }
         private string _Position;
         [DataMember]
         public string Position
         {
             get { return _Position; }
             set { _Position = value; }
         }
         private int _JSID;
         [DataMember]
         public int JSID
         {
             get { return _JSID; }
             set { _JSID = value; }
         }
		
    }
}
